package com.qing.simple_player.util;

/**
 * @author qing <br/>
 * 2025/3/14
 */
public class AssertUtil {

    public static void checkState(boolean expression, String message) {
        if (!expression) {
            throw new IllegalStateException(message);
        }
    }

    public static void checkArgument(boolean expression, String message) {
        if (!expression) {
            throw new IllegalArgumentException(message);
        }
    }
}
